<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <title>aaaaaaaa</title>
    <script>

function displayContact(user, phone){
	document.getElementById("text1").innerHTML='姓名：'+user;
	document.getElementById("text2").innerHTML='手机号：'+phone;
}

function getPayResult(result, service_name){
    <!-- result  1 ：支付成功      0：失败     -1：支付取消  -->
	document.getElementById("text2").innerHTML='支付结果：'+result;
	document.getElementById("text1").innerHTML='支付项目：'+service_name;

}

    </script>
</head>
<body>

<h1> JavaScript</h1>
<p id="text1"> user_name </p>
<p id="text2"> user_phone </p>

<button type="button" onclick="javascript:android.selectContacts(displayContact)"> select</button>

<button type="button" onclick="displayContact('张三','13930012345')"> recevice</button>


<button type="button" onclick="getPayResult('1','话费充值两元')"> payResult</button>

<button type="button" onclick="android.payForIncreaseServices('111111')"> order_number</button>


<a href="http://serve.qhdyzb.cn/load_person_info" target="_blank" title="测试"> person_info </a>

</body>
</html>